#pragma once
#define SIZE 1024
struct IO_FIle
{
    int flag;
    int fileno;
    char filebuffer[SIZE];
    int size;
    int capa;
};

typedef struct IO_FIle mFILE;

#define FFLUSH_NONE 0
#define FFLUSH_LINE 1
#define FFLUSH_FULL 2
mFILE* mfopen(char* filename,char* mode);
int mfwrite(const char* ptr, int num, mFILE* stream );

void mfflush(mFILE* stream);
void mfclose(mFILE* stream);
